
    import {
        DIC
    } from '@/const/dic';
    import Store from '../../store/';
    const allPermission = Store.state.user.permission;
    const isAdmin = Store.state.user.userInfo.superAdmin;
    export const goodsPropsSettingsTableOption = {
        border: false,
        index: false,
        selection: true,
        calcHeight: 220,
        columnBtn:false,
        searchClearable: false,
        selectClearBtn: false,
        searchResetBtn: false,
        height:"auto",
        menu: true,
        menuAlign: "center",
        searchBtn: true,
        labelWidth: 110,
        refreshBtn: true,
        tip:false,
        addBtn: isAdmin || !!allPermission['/admin/goods_props/create'],
        dialogWidth: '500px',
        dialogHeight: 'auto',
        menuWidth: 180,
        // editBtn: isAdmin || !!allPermission['/admin/goods_props/modify'],
        editBtn: false,
        viewBtn: false,
        delBtn: isAdmin || !!allPermission['/admin/goods_props/delete'],
        column: [
    {
        "label": "规格类型名称",
        "prop": "propsName",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 24,
        "display": true,
        "hide": false,
        "rules": [
            {
                "required": true,
                "message": "请输入规格类型名称",
                "trigger": "blur"
            }
        ]
    },
    {
        "label": "创建时间",
        "prop": "createTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false,
        "format": "yyyy-MM-dd HH:mm:ss",
        "valueFormat": "yyyy-MM-dd HH:mm:ss"
    },
    {
        "label": "创建人",
        "prop": "creator",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "修改时间",
        "prop": "modifyTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false,
        "format": "yyyy-MM-dd HH:mm:ss",
        "valueFormat": "yyyy-MM-dd HH:mm:ss"
    },
    {
        "label": "修改人",
        "prop": "modifier",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    }
]
    };
